<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
<h:head>
<title>Amministrazione</title>
		<link rel="stylesheet" type="text/css" href="style/reset.css" media="screen,print" />
		<link rel="stylesheet" type="text/css" href="style/print.css" media="print" />
		<link rel="stylesheet" type="text/css" href="style/style.css" media="screen,print" />
		<link rel="stylesheet" type="text/css" href="style/template.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="style/menu.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="pcss/pagina-3.css" media="screen" />
	</h:head>


<h:body>
		<div id="imHeaderBg"></div>
		<div id="imFooterBg"></div>
		<div id="imPage">
			<div id="imHeader">
				<h1 class="imHidden">Area Personale</h1>
			</div>
			<a class="imHidden" href="#imGoToCont" title="Salta il menu di navigazione">Vai ai contenuti</a>
			<a id="imGoToMenu"></a><p class="imHidden">Menu principale:</p>
			<div id="imMnMn" class="auto">
				<ul class="auto">
					<li id="imMnMnNode0" >
						<a href="http://localhost:8080/TravelDreamOnlineWeb">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Home Page</span>
							</span>
						</a>
					</li><li id="imMnMnNode3" >
						<a href="http://localhost:8080/TravelDreamOnlineWeb/user/index.xhtml">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Area Personale</span>
							</span>
						</a>
					</li><li id="imMnMnNode4" class="imMnMnCurrent">
						<a href="http://localhost:8080/TravelDreamOnlineWeb/admin/index.xhtml">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Area Riservata</span>
							</span>
						</a>
					</li><li id="imMnMnNode5">
						<a href="http://localhost:8080/TravelDreamOnlineWeb/contatti.html">
							<span class="imMnMnFirstBg">
								<span class="imMnMnTxt"><span class="imMnMnImg"></span>Contatti</span>
							</span>
						</a>
					</li>
				</ul>
			</div>
			<div id="imContentGraphics"></div>
			<div id="imContent">
			
<!--INSERIRE QUI LA PAGINA>
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
<-->
	<h1>Hello #{userBean.utente.nome}</h1>
	Funzioni: <br />

	<h:form>
		<p:commandButton action="#{logoutBean.logout}" value="Logout" />
	</h:form>
	
	<h:form>
	    <h:link outcome="ricerca" value="Cerca elementi base" /> <br /> 
	    <h:link outcome="ricercaVolo" value="Cerca Voli" /> <br /> 
		<h:link outcome="ricercaHotel" value="Cerca Hotel" /> <br /> 
		<h:link outcome="ricercaEscursione" value="Cerca Escursioni" /> <br /> 
		<br/>
		<h:link outcome="crea" value="Crea nuovo pacchetto predefinito" /> <br /> 
        <h:link outcome="volo" value="Inserisci volo" /> <br />
       	<h:link outcome="hotel" value="Inserisci hotel" /> <br />
        <h:link outcome="escursione" value="Inserisci escursione" /> <br />

	
	I pacchetti predefiniti creati:	
	<p:growl id="growl" showDetail="true" sticky="true" /> 
	
	<p:contextMenu for="pack">  
        <p:menuitem value="Modifica" icon="ui-icon-search" action="#{pacchettoPredBean.dettaglioPacchetto()}"/>  
   		<p:menuitem value="Cancella pacchetto" update="pack" icon="ui-icon-search" action="#{pacchettoPredBean.elimina()}"/>  
    </p:contextMenu>
    
    
    	<p:dataTable id="pack" var="pacchetto" value="#{userBean.utente.pacchettiPredefiniti}" scrollable="true" scrollHeight="150"
    	rowKey="#{pacchetto.idPacchettoPredefinito}" selection="#{pacchettoPredBean.selectedPacchetto}" selectionMode="single">  
        	<p:column headerText="Nome Pacchetto">  
            	<h:outputText value="#{pacchetto.nome}" />  
        	</p:column>  
        	
         	<p:column headerText="Totale">  
            	<h:outputText value="#{pacchetto.totale}" />  
        	</p:column>   
        	
          	<p:column headerText="Stato">  
            	<h:outputText value="#{pacchetto.approvazioneText}" />  
        	</p:column>   
        	       	
  	  </p:dataTable>  
    
	
</h:form>
<!--FINE DELLA PAGINA>
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
<-->						
				
								
			</div>		
			<div id="imFooter">
				
			</div>
	</div>
		<span class="imHidden"><a href="#imGoToCont" title="Rileggi i contenuti della pagina">Torna ai contenuti</a> | <a href="#imGoToMenu" title="Naviga ancora nella pagina">Torna al menu</a></span>
		
	<noscript class="imNoScript"><div class="alert alert-red">Per poter utilizzare questo sito è necessario attivare JavaScript.</div></noscript>
				</h:body>
</html>
